Extension point gadget
In component org.nuxeo.opensocial.gadgets.service
Contribution Descriptors
- Class: org.nuxeo.opensocial.gadgets.service.InternalGadgetDescriptor
Existing Contributions
Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.
-
<extension point="gadget" target="org.nuxeo.opensocial.gadgets.service"> <internalGadget disabled="false" name="polls"> <mountPoint>/polls</mountPoint> <entryPoint>polls.xml</entryPoint> <category>Nuxeo</category> <icon>gadget-polls.png</icon> </internalGadget> </extension>
-
<extension point="gadget" target="org.nuxeo.opensocial.gadgets.service"> <internalGadget name="services"> <mountPoint>/services</mountPoint> <entryPoint>services.xml</entryPoint> <category>Nuxeo</category> <icon>tasks.png</icon> </internalGadget> <internalGadget name="extensionPoints"> <mountPoint>/extensionPoints</mountPoint> <entryPoint>extensionPoints.xml</entryPoint> <category>Nuxeo</category> <icon>tasks.png</icon> </internalGadget> </extension>
-
<extension point="gadget" target="org.nuxeo.opensocial.gadgets.service"> <documentation> This gadget displays incoming and past events readable by the current User. Added into a SocialWorkspace, it displays only SocialWorkspace events. You have the possibility to display incoming events from: - a day - a week - a month How to include the agenda gadget in a JSF context: <code> <div class="gadget-agenda threeQuarterWidth"/> <script type="text/javascript"> jQuery('.gadget-agenda').openSocialGadget({ baseURL: '#{baseURL}', language: '#{localeSelector.language}', gadgetDefs: [ { specUrl: '#{gadgetsBaseURL}/site/gadgets/agenda/agenda.xml', title: 'My most liked document', userPrefs: { }, displayTitleBar: false, width: '100%' } ] }); </script> </code> How to include the agenda gadget in a WebEngine page: <code> <link href="${contextPath}/css/opensocial/light-container-gadgets.css" rel="stylesheet"/> <script src="${contextPath}/opensocial/gadgets/js/rpc.js?c=1" type="text/javascript"/> <script src="${contextPath}/js/?scripts=jquery.js|opensocial/cookies.js|opensocial/util.js|opensocial/gadgets.js|opensocial/cookiebaseduserprefstore.js|opensocial/jquery.opensocial.gadget.js" type="text/javascript"/> <div class="gadget-agenda gadgets-gadget-chrome"/> <script type="text/javascript"> $('.gadget-agenda').openSocialGadget({ baseURL: '${contextPath}' + '/', language: '${Context.locale.language}', gadgetDefs: [{ specUrl : '${Runtime.getProperty('nuxeo.loopback.url')}/site/gadgets/agenda/agenda.xml', userPrefs: { }, displayTitleBar: false, width: '100%' }] }); </script> </code> </documentation> <internalGadget disabled="false" name="agenda"> <mountPoint>/agenda</mountPoint> <entryPoint>agenda.xml</entryPoint> <category>gadget.category.utilities</category> <icon>gadget-agenda.png</icon> </internalGadget> </extension>
-
<extension point="gadget" target="org.nuxeo.opensocial.gadgets.service"> <internalGadget disabled="false" name="wall"> <documentation> This gadget displays a Wall for a given document (document created / modified, messages, ...) The following user preferences can be used to configure it: - nuxeoTargetContextPath: the path of the document on which to initialize the wall - activityStreamName: the activity stream to use to retrieve the configured list of activity verbs to get How to include the wall gadget in a JSF context: <code> <div class="gadget-wall threeQuarterWidth"/> <script type="text/javascript"> jQuery('.gadget-wall').openSocialGadget({ baseURL: '#{baseURL}', language: '#{localeSelector.language}', gadgetDefs: [ { specUrl: '#{gadgetsBaseURL}/site/gadgets/wall/wall.xml', title: '', userPrefs: { nuxeoTargetContextPath: { value: '#{currentDocument.pathAsString}' }, activityStreamName: { value: 'defaultWallActivityStream' } }, displayTitleBar: false, width: '100%' } ] }); </script> </code> How to include the wall gadget in a WebEngine page: <code> <link href="${contextPath}/css/opensocial/light-container-gadgets.css" rel="stylesheet"/> <script src="${contextPath}/opensocial/gadgets/js/rpc.js?c=1" type="text/javascript"/> <script src="${contextPath}/js/?scripts=jquery.js|opensocial/cookies.js|opensocial/util.js|opensocial/gadgets.js|opensocial/cookiebaseduserprefstore.js|opensocial/jquery.opensocial.gadget.js" type="text/javascript"/> <div class="gadget-wall gadgets-gadget-chrome"/> <script type="text/javascript"> $('.gadget-wall').openSocialGadget({ baseURL: '${contextPath}' + '/', language: '${Context.locale.language}', gadgetDefs: [{ specUrl : '${Runtime.getProperty('nuxeo.loopback.url')}/site/gadgets/wall/wall.xml', userPrefs: { nuxeoTargetContextPath: { value: '${doc.pathAsString}' }, activityStreamName: { value: 'defaultWallActivityStream' } }, displayTitleBar: false, width: '100%' }] }); </script> </code> </documentation> <mountPoint>/wall</mountPoint> <entryPoint>wall.xml</entryPoint> <category>Nuxeo</category> <icon>gadget-wall.png</icon> </internalGadget> </extension>
-
<extension point="gadget" target="org.nuxeo.opensocial.gadgets.service"> <internalGadget disabled="false" name="mostLiked"> <documentation> This gadget allows user to list most liked document from a Social Workspace or from a SuperSpace if it is added in the User Home. It's possible to display most liked documents from a range of date: - this week - this month - last week - last month - ever The following user preferences can be used to configure it: - contextPath: stores the last selected SuperSpace in case that the gadget is not in a Social Workspace (targetContextPath empty.) - dateRange: default dateRange selected, possible value: ever, this_week, this_month, last_week, last_month. Ever is the default one. How to include mostLiked gadget in a JSF context: <code> <div class="gadget-mostLiked threeQuarterWidth"/> <script type="text/javascript"> jQuery('.gadget-mostLiked').openSocialGadget({ baseURL: '#{baseURL}', language: '#{localeSelector.language}', gadgetDefs: [ { specUrl: '#{gadgetsBaseURL}/site/gadgets/mostLiked/mostLiked.xml', title: 'My most liked document', userPrefs: { contextPath: { value: '/default-domain/' }, dateRange: { value: 'last_week' } }, displayTitleBar: false, width: '100%' } ] }); </script> </code> How to include the wall gadget in a WebEngine page: <code> <link href="${contextPath}/css/opensocial/light-container-gadgets.css" rel="stylesheet"/> <script src="${contextPath}/opensocial/gadgets/js/rpc.js?c=1" type="text/javascript"/> <script src="${contextPath}/js/?scripts=jquery.js|opensocial/cookies.js|opensocial/util.js|opensocial/gadgets.js|opensocial/cookiebaseduserprefstore.js|opensocial/jquery.opensocial.gadget.js" type="text/javascript"/> <div class="gadget-mostLiked gadgets-gadget-chrome"/> <script type="text/javascript"> $('.gadget-mostLiked').openSocialGadget({ baseURL: '${contextPath}' + '/', language: '${Context.locale.language}', gadgetDefs: [{ specUrl : '${Runtime.getProperty('nuxeo.loopback.url')}/site/gadgets/mostLiked/mostLiked.xml', userPrefs: { contextPath: { value: '/default-domain/' }, dateRange: { value: 'last_week' } }, displayTitleBar: false, width: '100%' }] }); </script> </code> </documentation> <mountPoint>/mostLiked</mountPoint> <entryPoint>mostLiked.xml</entryPoint> <category>Nuxeo</category> <icon>gadget-mostLiked.png</icon> </internalGadget> </extension>